/**
 * Copyright (C), 2018-2018
 * FileName: RabbitMqConfig  * Author:   lcsos
 * Date:     2018/10/7 9:41
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.spring.rabbitmq.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 〈一句话功能简述〉<br>  
 * RabbitMQConfig的配置类
 *
 * @author Lcs
 * @create 2018/10/7
 */

@Configuration
public class RabbitMqConfig {
    //org.springframework.amqp.support.converter.MessageConverter
    @Bean
    public MessageConverter messageConverter(){
//        org.springframework.amqp.support.converter.Jackson2JsonMessageConverter
        return new Jackson2JsonMessageConverter();
    }
}
